package com.hzncc.flowable_diboot.delivery.excel.model;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.file.excel.BaseExcelModel;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;


/**
* 合同产品物料技术清单 导入model定义
*
* @author MyName
* @version 1.0
* @date 2024-08-05
 * Copyright © MyCorp
*/
@Getter
@Setter
@ExcelIgnoreUnannotated
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 1)
public class DeliveryDetailImportModel extends BaseExcelModel {

    /**
     * 项目号
     */
    @NotNull(message = "项目号不能为空")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 13)
    @ExcelProperty(value = "项目号")
    private String productCode;
    /**
    * 物料编码
    */
    @NotNull(message = "物料编码不能为空")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 13)
    @Length(max=100, message="物料编码长度应小于100")
    @ExcelProperty(value = "物料号")
    private String materialCode;
    /**
     * 物料数量
     */
    @NotNull(message = "物料数量不能为空")
    @HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 13)
    @ExcelProperty(value = "数量")
    private Long quantity;
    /**
    * 物料功能描述
    */
    @Length(max=100, message="物料功能描述长度应小于100")
    @ExcelProperty(value = "描述")
    private String description;


}